package cn.fbs.enums;

public enum  FileNameEnum {
    FILETYPE("文件类别",1),
    COUNTRY("国别",2),
//    zzdx
    STATUS("状态",3),
    POSITION("侦照方位",4),
    LOCATION("重点侦照部位",5),
    AREA("目标所在区域",6),
    DISTANCE("成像距离",7),
    CLEAR("成像清晰度",8),
    UNIT("采集单位",9)
    ;

    private String name;
    private Integer index;
    public String getName() {
        return name;
    }


    FileNameEnum(String name, Integer index) {
        this.name = name;
        this.index = index;
    }
    public static String getName(Integer index) {
        for (FileNameEnum fileNameEnum : FileNameEnum.values()) {
            if (fileNameEnum.getIndex().equals(index)){
                return fileNameEnum.getName();
            }

        }
        return null;
    }
    public static Integer getIndex(String name) {
        for (FileNameEnum fileNameEnum : FileNameEnum.values()) {
            if (fileNameEnum.getName().equals(name)){
                return fileNameEnum.getIndex();
            }

        }
        return null;
    }



    public void setName(String name) {
        this.name = name;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }
}
